import { Component, inject } from '@angular/core';
import { Oauth2AuthService } from '../auth/oauth2-auth.service';

import { MatButtonModule } from '@angular/material/button';

@Component({
  selector: 'jhi-login',
  templateUrl: './login.component.html',
  imports: [MatButtonModule],
})
export default class LoginComponent {
  private readonly oauth2AuthService = inject(Oauth2AuthService);

  logout(): void {
    this.oauth2AuthService.logout();
  }
}
